function f1(){
    console.log("f1执行");
}

var f2 = new Function("x","y","return x+y");
f1();
console.log(f2(2,3));


// var date = "var num=prompt('input');console.log(num);";
// var date1 = "alert('sql')";
// var date2 = "var p = {name:'anna',age=19};console.log(p.name);"

// var fun = new Function(date2);
// fun();


var mySum = function(n1,n2){
    return n1*n2;
}
var m1 = mySum;
var m2=  m1;
console.log(mySum(2,5));
console.log(m1(3,5));
console.log(m2(4,5));

saiHi();
function saiHi(){
    console.log("hi");
    
}

sayYes();
var sayYes = function(){
    console.log("yes");
}
